package com.tan.kotlintest.leo_daemon;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.tan.kotlintest.R;
import com.tan.kotlintest.leo_daemon.account.AccountHelper;

public class TestDaemonMainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        //1像素保活
//        KeepManager.getInstance().registerKeep(this);

        // 前台服务保活
        //startService(new Intent(this, ForegroundService.class));

        //sticky
//        startService(new Intent(this, StickyService.class));

        // 账户拉活
        AccountHelper.addAccount(this);
        AccountHelper.autoSync();

        //MyJobService.startJob(this);

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }
}
